package com.xf.lastmall.service.impl;


import com.xf.lastmall.moudle.entity.OrderTagsEntity;
import com.xf.lastmall.repository.OrderTagsRepository;
import com.xf.lastmall.service.OrderTagsService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public class OrderTagsServiceImpl implements OrderTagsService {
    @Autowired
    private OrderTagsRepository orderTagsRepository;

    @Override
    public void insert(List<OrderTagsEntity> entities) {
        for (OrderTagsEntity entity : entities) {
            orderTagsRepository.save(entity);
        }
    }

    public List<OrderTagsEntity> findByOrderNo(String orderNo) {
        return orderTagsRepository.findByOrderNo(orderNo);
    }
}
